
from websockets.sync.client import connect

flag = True

def hello():
    global flag
    with connect("ws://localhost:8000/ws/client/deploy") as websocket:
        while flag:
            # msg = input()
            # if msg == 'stop':
            #     flag = False
            #     print("stop ==========")
            # websocket.send(msg)
            message = websocket.recv()
            print(f"Received: {message}")

hello()